package Com.amit.Collection;

import java.util.Iterator;
import java.util.LinkedList;

public class Lab5 {

	public static void main(String[] args) {
		
		LinkedList al=new LinkedList();
		
		al.add("amit");
		al.add("anil");
		al.add("amit");
		
		Iterator itr=al.iterator();
		
		while(itr.hasNext())
		{
			System.out.println(itr.next());
		}
		
		

	}

}
